<?php
/**
 * 外部用户中心登录
 * 
 * @version $Id: Login.php 197 2011-12-21 06:03:43Z linsir123 $
 */
class controllerLogin extends Controller  
{
	/**
	 * QQ登录
	 */
	public function actionQQ()
	{
		$url = M::qq()->getLoginUrl();
		header('Location:'.$url);
	}
	
	/**
	 * QQ回调
	 */
	public function actionQQCallback()
	{
		M::qq()->callbackHandler();
	}
	
	/**
	 * 新浪微博登录
	 */
	public function actionSina()
	{
		$url = M::sina()->getLoginUrl();
		header('Location:'.$url);
	}
	
	/**
	 * 新浪微博回调
	 */
	public function actionSinaCallback()
	{
		M::sina()->callbackHandler();
	}
}
